package me

import grails.converters.JSON
import org.springframework.messaging.handler.annotation.MessageMapping
import org.springframework.messaging.handler.annotation.SendTo

class WebsocketController {

    def index() {}

    @MessageMapping("/notice")
    @SendTo("/topic/notice")
    protected String hello(String world) {
        println 45454545
        return "${world}!"
    }

}
